package com.jt9003.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Archives {
     private int  p_id;
     private  String p_name;
     private  String p_gender;
     private  int  p_age;
     private  String p_phone;
     private   String p_allergy;
     private   String p_chronic;
     private  String id_card;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
     private Date create_date;


    public Archives() {
    }

    public Archives(int p_id, String p_name, String p_gender, int p_age, String p_phone, String p_allergy, String p_chronic, String id_card, Date create_date) {
        this.p_id = p_id;
        this.p_name = p_name;
        this.p_gender = p_gender;
        this.p_age = p_age;
        this.p_phone = p_phone;
        this.p_allergy = p_allergy;
        this.p_chronic = p_chronic;
        this.id_card = id_card;
        this.create_date = create_date;
    }

    public int getP_id() {
        return p_id;
    }

    public void setP_id(int p_id) {
        this.p_id = p_id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public String getP_gender() {
        return p_gender;
    }

    public void setP_gender(String p_gender) {
        this.p_gender = p_gender;
    }

    public int getP_age() {
        return p_age;
    }

    public void setP_age(int p_age) {
        this.p_age = p_age;
    }

    public String getP_phone() {
        return p_phone;
    }

    public void setP_phone(String p_phone) {
        this.p_phone = p_phone;
    }

    public String getP_allergy() {
        return p_allergy;
    }

    public void setP_allergy(String p_allergy) {
        this.p_allergy = p_allergy;
    }

    public String getP_chronic() {
        return p_chronic;
    }

    public void setP_chronic(String p_chronic) {
        this.p_chronic = p_chronic;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public Date getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }
}
